import { createWebHashHistory } from "vue-router";
import { createRouter, createWebHistory } from "vue-router";

const router = createRouter({
  history: createWebHashHistory(),
  routes: [
    { path: "/", redirect: "/home" },
    {
      path: "/home",
      component: () => import("@/view/home.vue"),
      meta: {
        keepAlive: true, //需要缓存的页面,
        hideGlobalTitleBar: false, // 这个页面单独使用 TitleBar
        title: "home",
        deepth: 1,
      },
    },
  ],
});

export default router